import request from '@/api/request.js'
function bannerAds(){
	return request({
		url:'/lejuClient/home/bannerAds',
		method:'get'
	})
}

function categorys(parentid){
	return request({
		url:`/lejuClient/home/categorys/${parentid}`
	})
}

/**
 * 获取商品列表
 * @param {Object} start 第几页
 * @param {Object} limit 每页几条数据
 * @param {Object} data obj 
 */
function findProductList(start,limit,data){
	return request({
		url:`/lejuClient/product/findProductList/${start}/${limit}`,
		method:'post',
		data
	})
}

export {
	bannerAds,
	categorys,
	findProductList
}